    let spinning =false
    function chou(){
    let wheel = document.getElementById('wheel');
    wheel.style.transformOrigin = '50% 50%';
    if (spinning) return;
    spinning = true;
    let randomOffset = Math.floor(Math.random() * 20) + 75;
    let randomExtraRotation =1440;
    let totalRotation = randomExtraRotation + randomOffset;
    wheel.style.transform = `rotate(${totalRotation}deg)`;
    setTimeout(()=>{
    var True =document.getElementById('modulSpinner')
    True.style.display='block'
},6800)
}
    function toGet() {
        const params = window.location.search;
        if (params) {
            window.location.href = '/sp/#/' + params;
            // console.log('/nextPage.html' + params,'带参数')
        } else {
            window.location.href = '/sp/#/';
        }
    }
    function getPhoneList(){
    $.ajax({
        type: 'GET',
        url: httpUrl+'/api/v1/open/searchPhone',
        success: function(data) {
            if(data.code=='10000'){
                var phoneList =data.data;
                if(phoneList.length){
                    for (let i = 0; i < phoneList.length; i++) {
                        var rewards = [
                            '成功领取 一元购福利',
                            '成功领取 0.5元现金红包',
                            '成功领取 保温水杯',
                            '成功领取 1.8元现金红包',
                            '成功领取 电饭煲'
                        ];
                        var randomReward = rewards[Math.floor(Math.random() * rewards.length)];
                        var item = phoneList[i];
                        var scrollText = document.getElementById("scrollText");
                        var span = document.createElement("span");
                        span.textContent ="恭喜 "+ item +' '+randomReward;
                        scrollText.appendChild(span);
                    }
                }
            }
        },
        error: function(xhr, status, error) {
        }
    });

}
    function statistics(){
    $.ajax({
        type: 'GET',
        url: httpUrl+'/api/v1/open/statisticsRequests',
        success: function(data) {

        },
        error: function(xhr, status, error) {
        }
    });

}
    getPhoneList()
    statistics()


